//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_WORDSPELLCHECKER_H__2BAEA12C_15A1_49F2_A264_1F040AAA45C9__INCLUDED_)
#define AFX_WORDSPELLCHECKER_H__2BAEA12C_15A1_49F2_A264_1F040AAA45C9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "EzWordAutomation.h"

// WordSpellChecker.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CWordSpellChecker dialog

class CWordSpellChecker : public CDialog
{
// Construction
public:
	BOOL IsNotPresentInTermList(CString);

	CIsismarcView* vistaduenia;
	void AsignaView(CView *);
	void tokenizeText();
	void SetRecordText(CString);
	CString recordText;
	CWordSpellChecker(CWnd* pParent = NULL);   // standard constructor
	CArray<CString, CString&> palabras;
	CEzWordAutomation * wordpnt;
	

// Dialog Data
	//{{AFX_DATA(CWordSpellChecker)
	enum { IDD = IDD_DIALOGSPELL };
	CButton	m_BotonReemplazo;
	CStatic	m_Leyenda;
	CListBox	m_ListaSugerencias;
	CMSFlexGrid	m_GrillaPalabras;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWordSpellChecker)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CWordSpellChecker)
	virtual BOOL OnInitDialog();
	afx_msg void OnCancelMode();
	afx_msg void OnCaptureChanged(CWnd *pWnd);
	afx_msg void OnClickMsflexgrid1();
	afx_msg void OnDestroy();
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCharToItem(UINT nChar, CListBox* pListBox, UINT nIndex);
	afx_msg void OnButtonReplace();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WORDSPELLCHECKER_H__2BAEA12C_15A1_49F2_A264_1F040AAA45C9__INCLUDED_)
